package com.ychug;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;

/**
 * 启动程序
 *
 * @author dds
 */

@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
//@ServletComponentScan //配置druid必须加的注解，如果不加，访问页面打不开，filter和servlet、listener之类的需要单独进行注册才能使用，spring boot里面提供了该注解起到注册作用
//@MapperScan("com.ychug.*.*.mapper")
@MapperScan({"com.ychug.*.*.mapper","com.ychug.*.mapper"})
public class GatewayApplication{
    public static void main(String[] args){
        // System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(GatewayApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  MCPCMS系统启动成功   ლ(´ڡ`ლ)ﾞ  \n");
    }
}